# Contributor: Roberto Oliveira <robertoguimaraes8@gmail.com>
# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
pkgname=zutils
pkgver=1.12
pkgrel=0
pkgdesc="A collection of utilities able to process any combination of compressed and uncompressed files transparently"
url="https://www.nongnu.org/zutils/zutils.html"
arch="all"
license="GPL-2.0-or-later"
subpackages="$pkgname-doc"
checkdepends="bzip2 gzip grep"
source="https://download.savannah.gnu.org/releases/zutils/zutils-$pkgver.tar.lz
	noconflict.patch"

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		CXXFLAGS="$CXXFLAGS"
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
9f587b8729b669799a3596043c575d1a12c7d29e4d92a1ebc9d6868f45248720f9d30a5a6de7c8b770161c0544ac6ee572d70dda0a6e39b50f7e501d5b037d0c  zutils-1.12.tar.lz
646b7a9e9f9aa445d3e4c75457a4a57b4481ad9314a2b29ae7b82d7d90a50204ad8e0b0dc0e2bf47addd39d599bf681919e405e3159fe8420f3b0bb95c6e3517  noconflict.patch
"
